//
//  RequestManager.h
//  Leisure
//
//  Created by xalo on 16/6/28.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^requestCompleted)(NSData *data);//请求完成后将data输出
typedef void(^UpdateUI)();//请求结束，刷新UI

@interface RequestManager : NSObject
+(void)fetchDataWithUrl:(NSString *)url parameter:(NSDictionary *)dic method:(NSString *)method completed:(requestCompleted)completed updateUI:(UpdateUI)updateUI;
@end
